package com.ftqh.project.travel.notes.repository;

import com.ftqh.project.travel.notes.entity.Note;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

/**
 * Created by Administrator on 2017/5/8.
 */
@Transactional
public interface NoteRepository extends JpaRepository<Note, Long>,JpaSpecificationExecutor<Note>{

    List<Note> findByAuthorName(String authorName);
}
